Optimal. Leaf size=88 \[ \frac {c x}{a^3}-\frac {2 c \tan (e+f x)}{5 a^3 f (1+\sec (e+f x))^3}-\frac {3 c \tan (e+f x)}{5 a^3 f (1+\sec (e+f x))^2}-\frac {8 c \tan (e+f x)}{5 a^3 f (1+\sec (e+f x))} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.16, antiderivative size = 88, normalized size of antiderivative = 1.00, number of steps
used = 9, number of rules used = 6, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {3988, 3862,
4007, 4004, 3879, 3881} \begin {gather*} -\frac {8 c \tan (e+f x)}{5 a^3 f (\sec (e+f x)+1)}-\frac {3 c \tan (e+f x)}{5 a^3 f (\sec (e+f x)+1)^2}-\frac {2 c \tan (e+f x)}{5 a^3 f (\sec (e+f x)+1)^3}+\frac {c x}{a^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3862
Rule 3879
Rule 3881
Rule 3988
Rule 4004
Rule 4007
Rubi steps
\begin {align*} \int \frac {c-c \sec (e+f x)}{(a+a \sec (e+f x))^3} \, dx &=\frac {\int \left (\frac {c}{(1+\sec (e+f x))^3}-\frac {c \sec (e+f x)}{(1+\sec (e+f x))^3}\right ) \, dx}{a^3}\\ &=\frac {c \int \frac {1}{(1+\sec (e+f x))^3} \, dx}{a^3}-\frac {c \int \frac {\sec (e+f x)}{(1+\sec (e+f x))^3} \, dx}{a^3}\\ &=-\frac {2 c \tan (e+f x)}{5 a^3 f (1+\sec (e+f x))^3}-\frac {c \int \frac {-5+2 \sec (e+f x)}{(1+\sec (e+f x))^2} \, dx}{5 a^3}-\frac {(2 c) \int \frac {\sec (e+f x)}{(1+\sec (e+f x))^2} \, dx}{5 a^3}\\ &=-\frac {2 c \tan (e+f x)}{5 a^3 f (1+\sec (e+f x))^3}-\frac {3 c \tan (e+f x)}{5 a^3 f (1+\sec (e+f x))^2}+\frac {c \int \frac {15-7 \sec (e+f x)}{1+\sec (e+f x)} \, dx}{15 a^3}-\frac {(2 c) \int \frac {\sec (e+f x)}{1+\sec (e+f x)} \, dx}{15 a^3}\\ &=\frac {c x}{a^3}-\frac {2 c \tan (e+f x)}{5 a^3 f (1+\sec (e+f x))^3}-\frac {3 c \tan (e+f x)}{5 a^3 f (1+\sec (e+f x))^2}-\frac {2 c \tan (e+f x)}{15 a^3 f (1+\sec (e+f x))}-\frac {(22 c) \int \frac {\sec (e+f x)}{1+\sec (e+f x)} \, dx}{15 a^3}\\ &=\frac {c x}{a^3}-\frac {2 c \tan (e+f x)}{5 a^3 f (1+\sec (e+f x))^3}-\frac {3 c \tan (e+f x)}{5 a^3 f (1+\sec (e+f x))^2}-\frac {8 c \tan (e+f x)}{5 a^3 f (1+\sec (e+f x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.50, size = 169, normalized size = 1.92 \begin {gather*} \frac {c \sec \left (\frac {e}{2}\right ) \sec ^5\left (\frac {1}{2} (e+f x)\right ) \left (50 f x \cos \left (\frac {f x}{2}\right )+50 f x \cos \left (e+\frac {f x}{2}\right )+25 f x \cos \left (e+\frac {3 f x}{2}\right )+25 f x \cos \left (2 e+\frac {3 f x}{2}\right )+5 f x \cos \left (2 e+\frac {5 f x}{2}\right )+5 f x \cos \left (3 e+\frac {5 f x}{2}\right )-150 \sin \left (\frac {f x}{2}\right )+110 \sin \left (e+\frac {f x}{2}\right )-90 \sin \left (e+\frac {3 f x}{2}\right )+40 \sin \left (2 e+\frac {3 f x}{2}\right )-26 \sin \left (2 e+\frac {5 f x}{2}\right )\right )}{160 a^3 f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.13, size = 58, normalized size = 0.66
method | result | size |
derivativedivides | \(\frac {c \left (-\frac {\left (\tan ^{5}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{5}+\tan ^{3}\left (\frac {f x}{2}+\frac {e}{2}\right )-4 \tan \left (\frac {f x}{2}+\frac {e}{2}\right )+4 \arctan \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )\right )\right )}{2 f \,a^{3}}\) | \(58\) |
default | \(\frac {c \left (-\frac {\left (\tan ^{5}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{5}+\tan ^{3}\left (\frac {f x}{2}+\frac {e}{2}\right )-4 \tan \left (\frac {f x}{2}+\frac {e}{2}\right )+4 \arctan \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )\right )\right )}{2 f \,a^{3}}\) | \(58\) |
norman | \(\frac {\frac {c x}{a}-\frac {2 c \tan \left (\frac {f x}{2}+\frac {e}{2}\right )}{a f}+\frac {c \left (\tan ^{3}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{2 a f}-\frac {c \left (\tan ^{5}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{10 a f}}{a^{2}}\) | \(70\) |
risch | \(\frac {c x}{a^{3}}-\frac {2 i c \left (20 \,{\mathrm e}^{4 i \left (f x +e \right )}+55 \,{\mathrm e}^{3 i \left (f x +e \right )}+75 \,{\mathrm e}^{2 i \left (f x +e \right )}+45 \,{\mathrm e}^{i \left (f x +e \right )}+13\right )}{5 f \,a^{3} \left ({\mathrm e}^{i \left (f x +e \right )}+1\right )^{5}}\) | \(77\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.50, size = 173, normalized size = 1.97 \begin {gather*} -\frac {c {\left (\frac {\frac {105 \, \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} - \frac {20 \, \sin \left (f x + e\right )^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}} + \frac {3 \, \sin \left (f x + e\right )^{5}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{5}}}{a^{3}} - \frac {120 \, \arctan \left (\frac {\sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1}\right )}{a^{3}}\right )} + \frac {c {\left (\frac {15 \, \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} - \frac {10 \, \sin \left (f x + e\right )^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}} + \frac {3 \, \sin \left (f x + e\right )^{5}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{5}}\right )}}{a^{3}}}{60 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.65, size = 133, normalized size = 1.51 \begin {gather*} \frac {5 \, c f x \cos \left (f x + e\right )^{3} + 15 \, c f x \cos \left (f x + e\right )^{2} + 15 \, c f x \cos \left (f x + e\right ) + 5 \, c f x - {\left (13 \, c \cos \left (f x + e\right )^{2} + 19 \, c \cos \left (f x + e\right ) + 8 \, c\right )} \sin \left (f x + e\right )}{5 \, {\left (a^{3} f \cos \left (f x + e\right )^{3} + 3 \, a^{3} f \cos \left (f x + e\right )^{2} + 3 \, a^{3} f \cos \left (f x + e\right ) + a^{3} f\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - \frac {c \left (\int \frac {\sec {\left (e + f x \right )}}{\sec ^{3}{\left (e + f x \right )} + 3 \sec ^{2}{\left (e + f x \right )} + 3 \sec {\left (e + f x \right )} + 1}\, dx + \int \left (- \frac {1}{\sec ^{3}{\left (e + f x \right )} + 3 \sec ^{2}{\left (e + f x \right )} + 3 \sec {\left (e + f x \right )} + 1}\right )\, dx\right )}{a^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.49, size = 71, normalized size = 0.81 \begin {gather*} \frac {\frac {10 \, {\left (f x + e\right )} c}{a^{3}} - \frac {a^{12} c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{5} - 5 \, a^{12} c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3} + 20 \, a^{12} c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )}{a^{15}}}{10 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.38, size = 85, normalized size = 0.97 \begin {gather*} \frac {c\,x}{a^3}-\frac {\frac {13\,c\,\sin \left (\frac {e}{2}+\frac {f\,x}{2}\right )\,{\cos \left (\frac {e}{2}+\frac {f\,x}{2}\right )}^4}{5}-\frac {7\,c\,\sin \left (\frac {e}{2}+\frac {f\,x}{2}\right )\,{\cos \left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2}{10}+\frac {c\,\sin \left (\frac {e}{2}+\frac {f\,x}{2}\right )}{10}}{a^3\,f\,{\cos \left (\frac {e}{2}+\frac {f\,x}{2}\right )}^5} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________